﻿@page
@using FDSimpleModelGenerator.Common.Mvc
@model FDSimpleModelGenerator.Pages.RegisterModel
@{
    Layout = "~/Pages/Shared/_Layout_Login.cshtml";
    string returnUrl = Request.Query["ReturnUrl"];
    returnUrl = string.IsNullOrEmpty(returnUrl) ? "/" : returnUrl;
}

@section Styles
{
    @Html.InclueCss("~/css/login.min.css")
}
<div class="main-login">
    <div class="logo">
    </div>
    <div class="login-panel regist">
        <div class="card-body">
            <div class="validation-summary-errors text-danger" asp-validation-summary="All"></div>
            <form name="formEdit" action="/Register?returnUrl=@returnUrl" method="post">
                @Html.AntiForgeryToken()
                <input class="form-control mt-3" name="UserName" placeholder="用户名" />
                <input class="form-control mt-3" type="password" name="Password" placeholder="密码" />
                <input class="form-control mt-3" type="password" name="ConfirmPassword" placeholder="确认密码" />
                <div class="form-inline">
                    <input class="form-control mt-3 w-50 d-inline" name="Code" placeholder="验证码" />
                    <img class="mt-3 w-25 d-inline img-code" id="imgCode" src="/Register?handler=imgcode" />
                </div>
                <button class="btn btn-primary w-100 mt-lg-3">加入</button>
            </form>
            <a class="btn btn-sm btn-link" href="login?returnUrl=@returnUrl">登录</a>
        </div>
    </div>
</div>
@section Scripts
{
    @Html.InclueScript("~/js/imgcode.js")
}
